package com.cndw.kungfu.domain;

import com.cndw.kungfu.model.Context;

/**
 * 玩家消费记录
 * @author fantadust [9677889@qq.com]
 * @date 2011-10-26 下午2:40:47
 */
public class LogCost {
	/**
	 * 系统编号
	 */
	private int id;
	/**
	 * 角色id
	 */
	private long playerId;
	/**
	 * 消费类型
	 */
	private int stype;
	/**
	 * 金币
	 */
	private int gold;
	/**
	 * 商城积分
	 */
	private int vipScore;
	/**
	 * 绑定金币
	 */
	private int goldTicke;
	/**
	 * 获得道具id
	 */
	private int goodsId;
	/**
	 * 获得数量
	 */
	private int num;
	/**
	 * 消费类型
	 */
	private int eventId;
	/**
	 * 记录时间
	 */
	private int addTime;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public long getPlayerId() {
		return playerId;
	}
	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}
	public int getStype() {
		return stype;
	}
	public void setStype(int stype) {
		this.stype = stype;
	}
	public int getGold() {
		return gold;
	}
	public void setGold(int gold) {
		this.gold = gold;
	}
	public int getGoldTicke() {
		return goldTicke;
	}
	public void setGoldTicke(int goldTicke) {
		this.goldTicke = goldTicke;
	}
	public int getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getAddTime() {
		return addTime;
	}
	public void setAddTime(int addTime) {
		this.addTime = addTime;
	}
	
	public int getVipScore() {
		return vipScore;
	}
	public void setVipScore(int vipScore) {
		this.vipScore = vipScore;
	}
	
	
	public int getEventId() {
		return eventId;
	}
	public void setEventId(int eventId) {
		this.eventId = eventId;
	}
	public void syncDB() {		
		Context.getSyncServer().syncDB(this);
	}
	
	
	
}
